/*
 * main.cpp
 *
 *      Author: smirnovaop
 */

#include "Server.h"
#include "Client.h"
#include "Message.h"
#include "Menu.h"
#include "Debug.h"
#include <vector>
#include <string>
#include <cstdio>

#include <iostream>

using namespace std;
int main(){
	Server* server = new Server();
	vector<Client*> clients;
	for (int i = 0; i < 10; i++){
		clients.push_back(new Client(server));
	}
	while (true){
		info* inf= process(menu());
		action(inf, clients);
		free(inf);
	}



	return 0;
}
